#!/usr/bin/env python
# -*- coding:utf-8 -*-

from qcloud_cos import CosConfig
from qcloud_cos import CosS3Client
secret_id = 'AKIDyf8Llx9Yy97qJXuFjyylLhphJgnftmxt'  # 替换为用户的 secretId
secret_key = 'rTq1yjFhusb6MNAiz0mKceR0KNBk26uT'  # 替换为用户的 secretKey
region = 'ap-chengdu'  # 替换为用户的 Region
config = CosConfig(Region=region, SecretId=secret_id, SecretKey=secret_key)
client = CosS3Client(config)
response = client.create_bucket(
    Bucket='hyk-1301491552',
    ACL="public-read"  #  private  /  public-read / public-read-write
)